﻿@using Resources
@{
    //var validAuth = false;
    var returnUrl = Request.Url == null ? "/" : HttpUtility.UrlDecode(Request.Url.ToString());
    DHQGHN.DAL.BO.Admin.UserBO u = (DHQGHN.DAL.BO.Admin.UserBO)Session[Session.SessionID];
}
@if (Request.IsAuthenticated||true)
{    
    <text>
    <div class="clear"></div>
    <div id="top-bar-login" class="top-bar1">
        <div class="bar-left1">
            <span>
                @DateTime.Now.ToString("dddd, dd/MM/yyyy")
            </span>
        </div>
        <div class="bar-right1">

            @*<span style="text-align: right;">@Localization.Welcome: @Html.ActionLink(User.Identity.Name, "ChangePassword", "Account", routeValues: new { returnUrl }, htmlAttributes: new { @class = "username", title = "Đổi mật khẩu" }) </span>*@
            <span style="text-align: right;">Xin chào:  @Html.ActionLink(u.UserName, "ChangePassword", "Account", routeValues: new { returnUrl }, htmlAttributes: new { @class = "username", title = "Đổi mật khẩu" }) </span>
            &nbsp;| &nbsp;
                <span style="float: right;">
                    @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
                    {
                        @Html.AntiForgeryToken()
    <a href="/Login/LogOut">Log off</a>
                        @*<a href="javascript:document.getElementById('logoutForm').submit()">@Localization.LogOff</a>*@
                    }
                </span>
        </div>
        <div class="clear">
        </div>
    </div>
    </text>

}
